package com.tarry.observer.jdk;

public class Test {
    public static void main(String[] args) {
        Publisher publisher = new Publisher();
        Subscriber subscriber = new Subscriber(publisher);
        publisher.setMsg("观察者模式");
    }
}
